<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>选择身份</title>
    <link rel="stylesheet" type="text/css" href="../../css/api.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/yzl.css"/>

</head>
<body>
  <div id="blank" class="header" style="border-bottom:1px solid #F3F3F3">
      <div v-back.tapmode class="back"></div>
      <span class="title">选择身份</span>
      <span tapmode style="position:absolute;right:10px;font-size:14px;" onclick="makeprofit()">购买</span>
  </div>
</body>
<script src="../../script/api.js"></script>
<script src="../../script/vue.js"></script>
<script src="../../script/app.js"></script>
<script src="../../script/common.js"></script>
<script src="../../script/url.js"></script>
<script>

    var members,
        vm;
    apiready = function () {
      setBSImg();
      blank = new Vue({
          el:'#blank',
          data:{
              unReadMessageCount:0
          }
      });
      api.openFrame({
          name: 'changeMember_frame',
          url: 'changeMember_frame.html',
          rect: {
              x: 0,
              y: 60,
              w: api.winWidth,
              h: 'auto'
          },
          bounces: true
      });
      doubleBack();
      addListeners();
    };

    function makeprofit(){
      if (!getPrefs('token')) {
          reLogin();
          return;
      }
      openWin('makeprofit');
    }

    function addListeners() {
        api.addEventListener({
            name: 'viewappear'
        }, function () {
            onPageStart();
        });
        api.addEventListener({
            name: 'addmember'
        }, function () {
            window.location.reload();
        });
        api.addEventListener({
            name: 'viewdisappear'
        }, function () {
            onPageEnd();
        });

        api.addEventListener({
            name: 'keyback'
        }, function () {
            onPageEnd();
            api.closeWin();
        });
    }

</script>
</html>
